//package com.wisely.xxboot.dao;
//
//import com.wisely.xxboot.domain.Person;
//import org.springframework.data.jpa.repository.JpaRepository;
//import org.springframework.data.jpa.repository.Query;
//import org.springframework.data.repository.query.Param;
//import org.springframework.data.rest.core.annotation.RepositoryRestResource;
//import org.springframework.data.rest.core.annotation.RestResource;
//
//import java.util.List;
///**
// * 20170703抛开mysql
// * @return
// */
////@RepositoryRestResource(path = "people") //springboot默认访问路径是实体类加s来访问
//public interface PersonRepository extends JpaRepository<Person, Long> {
//    List<Person> findByAddress(String address);
//
//    Person findByNameAndAddress(String name,String address);
//
//    @Query("select p from Person p where p.name= :name and p.address= :address")
//
//    Person withNameAndAddressQuery(@Param("name")String name,@Param("address")String address);
//
//    Person withNameAndAddressNamedQuery(String name,String address);
//
////    Person findByNameStartWith(String name);
//
//    @RestResource(path="nameStartsWith", rel="nameStartsWith")
//    Person findByNameStartsWith(@Param("name") String name);
//}
